/// The National Security State and the Uses of Militarism
/// 7 September 2025

// The dataverse files indicate in their names which country dataset is which

///// Figure 1

// USA
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\US Data.dta"
tab pwhyjoin

// UK
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\UK Data.dta"
tab whyjoin

// FR
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\France Data.dta"
tab whyjoin

//IL
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\Israel Data.dta"
tab whyjoin

///// Figure 2

// USA
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\US Data.dta"
reg soldierapp intrinsic if control==0
estimates store ma, title(Model 1)

// UK
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\UK Data.dta"
reg soldierapp intrinsic if control==0
estimates store mb, title(Model 1)

// FR
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\France Data.dta", replace
reg soldierapp intrinsic if control==0
estimates store mc, title(Model 1)

//IL
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\Israel Data.dta"
reg soldierapp intrinsic if control==0
estimates store md, title(Model 1)

coefplot ma mb mc md, scheme(s1mono) mlcolor(black) mfcolor(none) mcolor(black) ///
		xline(0, lpattern(dash) lcolor(red%50)) ///
		drop(_cons) mlabposition(6)  mlabel ///
		aspect(1) xlab(-.5 "Soldier Less Favorable"  0  .5 "Soldier More Favorable")
		

///// Figure 3

// USA
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\US Data.dta"
logit binaryfavor i.soldierapprovalINT desperate citizen patriot employee
margins i.soldierapprovalINT

// UK
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\UK Data.dta"
logit binaryfavor i.soldierapprovalINT desperate citizen patriot employee
margins i.soldierapprovalINT

// FR
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\France Data.dta", replace
logit binaryfavor i.soldierapprovalINT desp citizen patriot employee
margins i.soldierapprovalINT

//IL
use "C:\Users\ralstonr\OneDrive - University of Birmingham\Work with Ron\Militarism National Security State\Israel Data.dta"
logit binaryfavor i.soldierapprovalINT intrinsic
margins i.soldierapprovalINT

		
		
		
		
		
		